package com.liuguang.api.gateway.security.pojo.bo;

import com.liuguang.api.gateway.security.pojo.MenuDO;
import com.liuguang.api.gateway.security.pojo.RoleDO;
import lombok.ToString;

import java.util.Date;
import java.util.List;

/**
 * @ClassName: AuthUser
 * @Description： 保存认证后的user，包含用户基本信息 和 权限信息
 * @Author: wanghr
 * Date: 10:27 AM 2020/9/21
 * Version: 1.0
 */
@ToString
public class AuthUser  {

    //保存 角色 列表
    private List<RoleDO> roleList;
    // 保存 菜单 列表
    private List<MenuDO> menuList;

    public List<RoleDO> getRoleList() {
        return roleList;
    }

    public void setRoleList(List<RoleDO> roleList) {
        this.roleList = roleList;
    }

    public List<MenuDO> getMenuList() {
        return menuList;
    }

    public void setMenuList(List<MenuDO> menuList) {
        this.menuList = menuList;
    }
    private Integer id;

    private String username;

    private String password;

    private String phoneNumber;

    private String email;

    private String frequentlyUsedIp;

    private Byte isDelated;

    private Date createTime;

    private Date updateTime;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username == null ? null : username.trim();
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password == null ? null : password.trim();
    }

    public String getPhoneNumber() {
        return phoneNumber;
    }

    public void setPhoneNumber(String phoneNumber) {
        this.phoneNumber = phoneNumber == null ? null : phoneNumber.trim();
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email == null ? null : email.trim();
    }

    public String getFrequentlyUsedIp() {
        return frequentlyUsedIp;
    }

    public void setFrequentlyUsedIp(String frequentlyUsedIp) {
        this.frequentlyUsedIp = frequentlyUsedIp;
    }

    public Byte getIsDelated() {
        return isDelated;
    }

    public void setIsDelated(Byte isDelated) {
        this.isDelated = isDelated;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }
}
